<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); if($_G['uid']) { ?>
<div class="u_info">
<span class="avatar"><?php echo avatar($_G[uid],small);?></span>
   
     <span><?php echo $_G['member']['username'];?></span> 
     <div class="mymenu"> 
<ul> 
<li class="loginli"><?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra1'])) echo $_G['setting']['pluginhooks']['global_usernav_extra1'];?></li>

<li><a href="home.php?mod=space&amp;uid=<?php echo $_G['uid'];?>&amp;do=thread&amp;view=me&amp;from=space">我的帖子</a></li>
<li><?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra4'])) echo $_G['setting']['pluginhooks']['global_usernav_extra4'];?></li>
<li><a href="home.php?mod=space&amp;do=favorite&amp;view=me">我的收藏</a></li>
<li><a href="home.php?mod=spacecp">个人设置</a></li>
<li><a href="home.php?mod=space&amp;do=notice">提醒<?php if($_G['member']['newprompt']) { ?><em id="notice_tip_count">(<?php echo $_G['member']['newprompt'];?>)</em><?php } ?></a></li>
<li><a href="home.php?mod=space&amp;do=pm">消息<?php if($_G['member']['newpm']) { ?><em id="reply_tip_count">(new)</em><?php } ?></a></li>
<?php if(check_diy_perm($topic)) { ?>
<li><a href="javascript:openDiy();" >DIY</a></li>
<?php } if(($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))) { ?>
<li><a href="portal.php?mod=portalcp"><?php if($_G['setting']['portalstatus'] ) { ?>门户管理<?php } else { ?>模块管理<?php } ?></a></li>
<?php } if($_G['uid'] && $_G['group']['radminid'] > 1) { ?>
<li><a href="forum.php?mod=modcp&amp;fid=<?php echo $_G['fid'];?>" target="_blank"><?php echo $_G['setting']['navs']['2']['navname'];?>管理</a></li>
<?php } if($_G['uid'] && $_G['adminid'] == 1 && $_G['setting']['cloud_status']) { ?>
<li><a href="admin.php?frames=yes&amp;action=cloud&amp;operation=applist" target="_blank">云平台</a></li>
<?php } if($_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)) { ?>
<li><a href="admin.php" target="_blank">管理中心</a></li>
<?php } ?>
<li><?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra2'])) echo $_G['setting']['pluginhooks']['global_usernav_extra2'];?></li>
<li><?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra3'])) echo $_G['setting']['pluginhooks']['global_usernav_extra3'];?></li>
<li><a href="member.php?mod=logging&amp;action=logout&amp;formhash=<?php echo FORMHASH;?>">退出</a></li>
</ul> 
     </div> 
    </div>
<div class="loginm"> 
 <div class="klp_top"> 
  <span class="avatar"><?php echo avatar($_G[uid],small);?></span> <h2><?php echo $_G['member']['username'];?></h2><p>用户组: <?php echo $_G['group']['grouptitle'];?></p> </div> 
 <div class="klp_loginmn"> 
<ul> 
<li><a href="home.php?mod=space&amp;uid=<?php echo $_G['uid'];?>&amp;do=thread&amp;view=me&amp;from=space">我的帖子</a></li>
<li><?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra4'])) echo $_G['setting']['pluginhooks']['global_usernav_extra4'];?></li>
<li><a href="home.php?mod=space&amp;do=favorite&amp;view=me">我的收藏</a></li>
<li><a href="home.php?mod=spacecp">个人设置</a></li>
<li><?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra2'])) echo $_G['setting']['pluginhooks']['global_usernav_extra2'];?></li>
<li><?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra3'])) echo $_G['setting']['pluginhooks']['global_usernav_extra3'];?></li>
<li> <a href="member.php?mod=logging&amp;action=logout&amp;formhash=<?php echo FORMHASH;?>">退出</a></li> 
</ul> 
 </div> 

</div>
<?php } elseif(!$_G['connectguest']) { ?>
  <div class="loginm"> 
   <div class="mobile_dlu"> 
<img src="<?php echo $_G['style']['styleimgdir'];?>/avatar.png" class="avatar" height="128" width="128" /> 
<a href="member.php?mod=logging&amp;action=login" class="mobile_dlu btn klp_login">登录</a> 
<a href="member.php?mod=<?php echo $_G['setting']['regname'];?>" class="klp_reg btn">新用户注册</a> 
   </div> 
  </div>
  
<div class="loginnormal">
<a href="member.php?mod=<?php echo $_G['setting']['regname'];?>" class="btn">注册</a>
<a href="member.php?mod=logging&amp;action=login" class="btn klp_login" onClick="showWindow('login', this.href)" >登录</a>
</div>

<?php } else { ?>
<?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra1'])) echo $_G['setting']['pluginhooks']['global_usernav_extra1'];?>
<?php } ?>

